<?php echo $this->Section->main(); ?>
<?php echo $this->Html->css(array(HOST.'/gallery.seo.pzco'),null,array('inline'=>false));?>
<body>
<div class="container_4">

	<div class="grid_1">
		<div class="logo"><?php echo $this->Html->link($this->Html->image(HOST.'/seo.pzco.logo.png'),'/',array('escape'=>false));?></a></div>
	</div>
	<?php echo $this->element('aktualnosci-promocje')?>
	<div class="grid_3">
		
	</div>
	
	<div class="clear"> </div>
	
	<div class="grid_4">
		<?php echo $this->element('menu-top')?>
		<div class="clear"> </div>
	</div>
		
	<div class="clear"> </div>
	
	<div class="grid_4 header">
		<?php echo $this->element('baner')?>
		<div class="clear"> </div>
	</div>	
	
	<div class="clear"> </div>
	<div class="content">
		<div class="grid_1 white">
			
			<div class="left-text-content">
				<h2><?php echo __('Kategorie',true)?></h2>
				<?php echo $this->element('menu-right-gallery',array('plugin' => false,'categories'=>$this->Gallery->categories()))?>&nbsp;
				<div class="clear"> </div>
			</div>
			<div class="clear"> </div>
		</div>
		
		<div class="grid_3 white">
			<div class="right-text-content">
	    	<?php
	    		//pobranie indeksu kategorii 
	    		$category = (isset($this->params['named']['g'])) ? $this->params['named']['g'] : null;    		
	    		$aCategory = $this->Gallery->category($category);
	    	?>
	    	
	    	<h2><?php echo $aCategory['GalleryCategory']['name']?></h2>
			<?php 
			
			
			echo $this->element('gallery',array('plugin' => false,
			'items'=>$this->Gallery->index($aCategory['GalleryCategory']['id'])
			,'category_id'=>$aCategory['GalleryCategory']['id']
			,'params'=>array('width'=>125,'height'=>100,'padding'=>5,'margin'=>5,'border'=>0,'i'=>null)
			));?>
			<div class="clear"> </div>
			</div>
			<div class="clear"> </div>
		</div>
		<div class="clear"> </div>
	</div>	
	<div class="clear"> </div>
	
	<?php echo $this->element('footer');?>
	<div class="clear"> </div>
</div>
<div class="clear"> </div>
</body>
